﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewProducts.ascx.cs" Inherits="Controls_NewProducts" %>
<%@ Import Namespace="DTO" %>
<script src="<%=Globals.ApplicationPath%>Jquery/jquery.js" type="text/javascript"></script>
<script src="<%=Globals.ApplicationPath%>Jquery/main.js" type="text/javascript"></script>

<style>
#preview{
	position:absolute;
	border:1px solid #757578;
	background:#333;
	padding:5px;
	display:none;
	color:#fff;
	}
</style>

<marquee behavior="scroll" direction="up" scrollamount="3" onmouseover="this.stop()" onmouseout="this.start()" style="width: 100%; height:200px;">

<asp:DataList ID="dtlProducts" EnableTheming="False" runat="server" DataSourceID="objNewProducts"
       DataKeyField="ID" GridLines="Horizontal" Width="100%" RepeatColumns="1" 
    BackColor="White" BorderStyle="None" BorderWidth="1px" 
    CellPadding="4" ForeColor="Black">
       <SelectedItemStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
       <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
       <ItemTemplate>      
            <table width="180px">
                <tr>
                    <td class="titleProduct" align="center">
                        <a href='<%#Globals.ApplicationPath%>Products/<%#Eval("ID")%>/<%#Utils.ConvertToUnSign(DataBinder.Eval(Container.DataItem, "Title").ToString())%>.aspx'/>
                            <%#Eval("Title")%>
                        </a>                        
                    </td>
                </tr>
                <tr>
                    <td align="center">
                         <p><strong class="allowHTML" title="<img src='<%#Eval("FullImageUrl") %>' />"><asp:Image runat="server" ID="Image1" Width="170px" AlternateText='<%#Eval("Title") %>' ImageUrl='<%#Eval("SmallImageUrl")%>'  /></strong></p>
                    </td>
                 </tr>
                 <tr>
                    <td align="center">
                        <div class="details">
                            <a href='<%#Globals.ApplicationPath%>Products/<%#Eval("ID")%>/<%#Utils.ConvertToUnSign(DataBinder.Eval(Container.DataItem, "Title").ToString())%>.aspx'/>
                                xem chi tiết...
                            </a>
                        </div>
                    </td>
                </tr>
            </table>
       </ItemTemplate>
       <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
       <ItemStyle BorderColor="Orange" />
</asp:DataList>
<asp:ObjectDataSource runat="server" ID="objNewProducts" 
    TypeName="BLL.Store.Product" SelectMethod="ListNewProduct">
</asp:ObjectDataSource>
</marquee>